package com.yljk.yljkproject.ui;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

import com.yljk.servicemanager.constants.ReactApi;
import com.yljk.yljkproject.R;
import com.yljk.yljkproject.utils.ReactUtils;

public class NotificationClickActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notification_click);

        Intent intent = getIntent();
        long uid = intent.getLongExtra("uid", 0);
        long patientId = intent.getLongExtra("patientId", 0);
        int chargesListId = intent.getIntExtra("chargesListId", 0);
        Bundle bundle = new Bundle();
        bundle.putString("uid", String.valueOf(uid));
        bundle.putString("patientId", String.valueOf(patientId));
        bundle.putString("chargesListId", String.valueOf(chargesListId));
        ReactUtils.INSTANCE.push(this, ReactApi.IM_DOCTORBUNDLE,ReactApi.Message.ImChating,bundle);
        finish();
    }
}